﻿using Host.Model;
using Host.DB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Host.CTR
{
    class UserCtr
    {
        public User createUser(String fName, String lName, String address, int zipCode, String city, String licensPlate, String phoneNumber, String email, String userName, String password, int rank)
        {
            DBUser DBC = new DBUser();
            User user = new User(fName, lName, address, zipCode, city, licensPlate, phoneNumber, email, userName, password, rank);
            DBC.addUser(user);
            return user;
        }

        public void creatUserFull(int ID, String fName, String lName, String address, int zipCode, String city, String licensPlate, String phoneNumber, String email, String userName, String password, int rank)
        {
            User user = new User(ID, fName, lName, address, zipCode, city, licensPlate, phoneNumber, email, userName, password, rank);
        }

    }
}


        
